package com.ruoyi.project.filemgr.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.filemgr.service.ISharemgrService;

/**
 * HomeController
 * 
 * @author sharemgr
 * @date 2024-01-29
 */
@RestController
@RequestMapping("/home")
public class HomeController extends BaseController {
    @Autowired
    private ISharemgrService sharemgrService;

    @GetMapping(value = "/sharemgr/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id) {
        return success(sharemgrService.selectSharemgrById(id));
    }
}
